<?php
namespace Admin\Model;
use Think\Model;
class BillModel extends Model {
    
   protected $_validate = array(
    	
    	//array(验证字段1,验证规则,错误提示,[验证条件,附加规则,验证时间])
    	array('veriety','require','分类名称必选！','1','','3'),
        array('dishname','','此菜名已存在','1','unique','3'),
    	array('price','require','价格必填！','1','','3'),
        array('intor','5,120','字数在5~120之间','1','length','3')      
		);
}